<template>
  <el-col :span="5">
    <el-card shadow="hover">
      <span>{{ title }}</span>
      <div class="headComponent">
        <span>{{ time }}</span>
      </div>
    </el-card>
  </el-col>
</template>

<script>
export default {
  props: {
    title: {
      type: String,
      default: '平均学习时长'
    },
    time: {
      type: String,
      default: '1'
    }
  }
}
</script>

<style scoped>
.el-col{
  text-align: left;
  margin: 0 40px;
  font-size: 18px;
}
.headComponent{
  line-height: 20px;
  margin-top: 20px;
}
.el-card__body > span{
  color: #fff;
  font-weight: 600;
}
.headComponent span{
  color: #fff;
  font-weight: 600;
}
</style>
